<template>
  <div>
    <h1>我是大儿子</h1>
    <button @click="sendCar">我给我的兄弟送一个法拉利</button>
    <Item/>
  </div>
</template>

<script>
import  Item from './Item'
export default {
  name: "",
  components:{
      Item
  },
  methods: {
    //大哥的按钮回调
    sendCar(){
      this.$bus.$emit('car',"法拉利")
    }
  },
};
</script>

<style scoped lang="less">
   div{
       width: 400px;
       height: 200px;
       background: skyblue;
       margin: 10px auto;
       h1{
           text-align: center;
       }
   }
</style>
